namespace Zj.OpenAuth.Repository.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class change : DbMigration
    {
        public override void Up()
        {
            AlterColumn("dbo.User", "Code", c => c.String(maxLength: 36));
            AlterColumn("dbo.User", "Phone", c => c.String(maxLength: 20));
            AlterColumn("dbo.User", "Mobile", c => c.String(maxLength: 20));
            AlterColumn("dbo.User", "Address", c => c.String(maxLength: 50));
            AlterColumn("dbo.User", "Email", c => c.String(maxLength: 100));
            AlterColumn("dbo.User", "WeChat", c => c.String(maxLength: 50));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.User", "WeChat", c => c.String(nullable: false, maxLength: 50));
            AlterColumn("dbo.User", "Email", c => c.String(nullable: false, maxLength: 100));
            AlterColumn("dbo.User", "Address", c => c.String(nullable: false, maxLength: 50));
            AlterColumn("dbo.User", "Mobile", c => c.String(nullable: false, maxLength: 20));
            AlterColumn("dbo.User", "Phone", c => c.String(nullable: false, maxLength: 20));
            AlterColumn("dbo.User", "Code", c => c.String(nullable: false, maxLength: 36));
        }
    }
}
